#include "lcd_extra.h"
#include "display_drv.h"
void lcd_extra_config(void)
{
    oled_write_cmd(0xB2);
    oled_write_data(0x0C);
    oled_write_data(0x0C);
    oled_write_data(0x00);
    oled_write_data(0x33);
    oled_write_data(0x33);

    oled_write_cmd(0xB7);
    oled_write_data(0x74);

    oled_write_cmd(0xBB);
    oled_write_data(0x31); // Vcom=1.35V

    oled_write_cmd(0xC2);
    oled_write_data(0x01);

    oled_write_cmd(0xC3);
    oled_write_data(0x19); // GVDD=4.8V

    oled_write_cmd(0xC4);
    oled_write_data(0x20); // VDV, 0x20:0v

    oled_write_cmd(0xC6);
    oled_write_data(0x0F); // 0x0F:60Hz

    oled_write_cmd(0xD0);
    oled_write_data(0xA4);
    oled_write_data(0xA1);

    oled_write_cmd(0xD6);
    oled_write_data(0xA1);

    oled_write_cmd(0xE0);
    oled_write_data(0x70);
    oled_write_data(0x04);
    oled_write_data(0x0A);
    oled_write_data(0x09);
    oled_write_data(0x0A);
    oled_write_data(0x27);
    oled_write_data(0x2C);
    oled_write_data(0x43);
    oled_write_data(0x42);
    oled_write_data(0x38);
    oled_write_data(0x13);
    oled_write_data(0x13);
    oled_write_data(0x27);
    oled_write_data(0x2B);

    oled_write_cmd(0xE1);
    oled_write_data(0x70);
    oled_write_data(0x05);
    oled_write_data(0x08);
    oled_write_data(0x0A);
    oled_write_data(0x08);
    oled_write_data(0x04);
    oled_write_data(0x2C);
    oled_write_data(0x43);
    oled_write_data(0x41);
    oled_write_data(0x3A);
    oled_write_data(0x16);
    oled_write_data(0x16);
    oled_write_data(0x28);
    oled_write_data(0x2C);
}
